package com.zn.services;

import com.zn.dto.UserDTO2;
import com.zn.dto.UserDTO3;
import com.zn.pojo.UserInfo;
import com.zn.pojo.UserRoleRelation;

import java.util.List;

public interface UserService {

    UserInfo findUserByUN(String username);

    boolean  insertUserInfo(UserDTO3 userInfo);

    UserRoleRelation findUserAuthByUid(Integer uid);

    int updatePassword(Integer uid,String password);

    List<UserDTO3> getAll();

    List<UserDTO3> getByRoleId(int roleId);

}
